package com.example.module.utils;

import java.util.HashMap;
import java.util.Map;

public class ResponseCode {
    private static final Map<Integer, String> statusMap = new HashMap<Integer, String>();

    static {
        statusMap.put(1001, "OK");
        statusMap.put(1002, "需要登录，没登录");
        statusMap.put(1010, "账号密码不匹配或账号不存在");


        statusMap.put(2001, "手机号不存在");
        statusMap.put(3001,"其他新增失败");
        statusMap.put(3002,"更新失败");
        statusMap.put(3003,"文件上传失败");


        statusMap.put(4003, "没有权限");
        statusMap.put(4004, "链接超时");
    }

    public static String getMsg(Integer code) {
        return statusMap.get(code);
    }
}
